<template>
  <div class="loading-container"></div>
</template>
<script>
export default {
  data () {
    return {};
  },
  methods: {},
  created () { },
  mounted () {
    let target = this.$route.query.page;
    let intervalId = setInterval(() => {
      // let token = window.sessionStorage.getItem("access_token");
      let token = window.localStorage.getItem("access_token");
      if (token) {
        clearInterval(intervalId);
        this.$router.push({
          path: "/" + target
        });
      }
    }, 20);

    console.log("loading mounted");
  }
};
</script>
<style scoped lang="scss">
.loading-container {
}
</style>
